package com.rms.hkpc.adapter;

import android.content.Context;

import com.rms.hkpc.R;
import com.rms.hkpc.adapter.base.BaseAdapter;
import com.rms.hkpc.adapter.base.BaseViewHolder;
import com.rms.hkpc.db.dto.ParamValDto;

import java.util.List;

public class ShowAdapter extends BaseAdapter<ParamValDto> {

    public ShowAdapter(Context context, List<ParamValDto> mDatas, int layoutId) {
        super(context, mDatas, layoutId);
    }

    @Override
    public void convert(BaseViewHolder holder, ParamValDto item, int position) {
        holder.setText(R.id.tv_title, item.getName() == null ? "" : item.getName());
        holder.setInsight(item.getColor() == null ? "#333333" : item.getColor());
    }
}
